package com.gjintel.framework.log.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name = "T_SYS_LOG_INFO")
@SuppressWarnings("serial")
public class LogInfo implements Serializable {
	private String id;
	private String logContent;
	private String oper;
	private String operName;
	private Date opTime;
	private String opType;
	private String opEntity;
	private String opId;

	public LogInfo() {
	}

	public LogInfo(String logContent, String oper, String operName, String opType, String opEntity, String opId) {
		super();
		this.logContent = logContent;
		this.oper = oper;
		this.operName = operName;
		this.opType = opType;
		this.opEntity = opEntity;
		this.opId = opId;
	}

	@Id
	@GeneratedValue(generator = "UIDGenerator")
	@GenericGenerator(name = "UIDGenerator", strategy = "org.hibernate.id.UUIDHexGenerator")
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "LOG_CONTENT", insertable = true, updatable = true)
	public String getLogContent() {
		return logContent;
	}

	public void setLogContent(String logContent) {
		this.logContent = logContent;
	}

	public String getOper() {
		return oper;
	}

	public void setOper(String oper) {
		this.oper = oper;
	}

	@Column(name = "OPER_NAME", insertable = true, updatable = true)
	public String getOperName() {
		return operName;
	}

	public void setOperName(String operName) {
		this.operName = operName;
	}

	@Column(name = "OP_TIME", insertable = true, updatable = true)
	public Date getOpTime() {
		return opTime;
	}

	public void setOpTime(Date opTime) {
		this.opTime = opTime;
	}

	@Column(name = "OP_ENTITY", insertable = true, updatable = true)
	public String getOpEntity() {
		return opEntity;
	}

	public void setOpEntity(String opEntity) {
		this.opEntity = opEntity;
	}

	@Column(name = "OP_ID", insertable = true, updatable = true)
	public String getOpId() {
		return opId;
	}

	public void setOpId(String opId) {
		this.opId = opId;
	}

	@Column(name = "OP_TYPE", insertable = true, updatable = true)
	public String getOpType() {
		return opType;
	}

	public void setOpType(String opType) {
		this.opType = opType;
	}
}
